#ifndef __DAY03_H_  
#define __DAY03_H_  
#include <iostream> 
#include <cstring>
using namespace std;
#define ARGS_CHECK(argc, num)                     {                                                 if (argc != num)                              {                                                 fprintf(stderr, args error!n);             return -1;                                }                                         }
#define ERROR_CHECK(ret, num, msg)     {                                      if (ret == num)                    {                                      perror(msg);                    exit(1);                      }                              } 
 
class myString{
    public:
    myString(const char *p_new);
    myString(const myString & str);
    ~myString();
    public:
    void show();
    char getval(int offset);
    private:
        char *p;
        int len;
};
class stu{
    public:
     stu(string name,int age,char *p,int xxx);
    stu(int age);
    ~stu();
    public:
    static void  fun();
    void show();
    public:
    static int age;
    static char msg[12];
    static string name;
    private:
    static int x;
};

class const_test{
    public:
    const_test(int a,int b,int c);
    ~const_test();
    public:
    void show();
    void fun() const;
    const int b;
    int c;
    private:
    const int a;

};

class A{
    friend class B;
    friend void test();
    public:
        A();
        ~A();
    public:
        void fun();
    private:
        int a;
};
void test();
class B{
    public:
    B();
    ~B();
    public:
    void class_friend();
    private:
    int b;
    A a3;
};
#endif
